EMT Practice Test

1. Question Content...


Question List

Question1: What is the expected behavior of the following code?

Question2: Which of the following expression evaluate to True? (Select two answers)

Question3: Assuming that the code below has been executed successfully, which of the following expressions will always evaluate to True? (Select two answers) import random v1 = random. random() v2 = random. random()

Question4: What is the expected output of the following code?
def foo(x,y,z):
return x(y) - x(z)
print{f00(lambda x: x % 2, 2, 1) )

Question5: A property that stores information about a given class's super-classes is named:

Question6: With regards to the directory structure below, select the proper forms of the directives in order to import module_a. (Select two answers)

Question7: What is true about the following snippet? (Select two answers)

Question8: What is the expected behavior of the following code?

Question9: Assuming that the code below has been executed successfully, which of the following expressions evaluate to True? (Select two answers)

Question10: Assuming that the following code has been executed successfully, select the expressions which evaluate to True (Select two answers)

Question11: Assuming that the following piece of code has been executed successfully, which of the expressions evaluate to True? (Select two answers)

Question12: Which of the following statements are true? (Select two answers)

Question13: What is the expected behavior of the following code?
x = 8 ** (1/3)
y = 2. if x < 2.3 else 3.
print(y)

Question14: Which of the following invocations are valid? (Select two answers)